package com.yzt;

public class MethodDemo {
    public static void main(String[] args) {
        int a = maxValue(5,5);
        System.out.println(a);

    }

    public static int maxValue(int firstNum,int scondNum) {
        if (firstNum >= scondNum) {
            return firstNum;
        }
            return scondNum;
    }
}
